import request from '@/utils/request'
// 渲染页面
export const getSerrepairData=(params)=>{
  return request({
    url:'service/repair',
    method:'get',
    params
  })
}

// 删除
export const getSerrepairDel=(id)=>{
  return request({
    url:`service/repair/${id}`,
    method:'DELETE'
  })
}
// 回显
export const getSerrepairEcho=(id)=>{
  return request({
    url:`service/repair/${id}`,
    method:'get'
  })
}
// 更新
export const getSerrepairUpdate=(data)=>{
  return request({
    url:`service/repair/${data.id}`,
    method:'put',
    data
  })
}